From d0f7291e8258a0ab61210a9f8b2e6f3e6563b327 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Thu, 20 Mar 2008 14:16:56 +0000 Subject: [PATCH] (add_registry): Cast return value of alloca. --- nt/addpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nt/addpm.c b/nt/addpm.c index 8541c468b46..52c2d32a959 100644 --- a/nt/addpm.c +++ b/nt/addpm.c @@ -97,7 +97,7 @@ add_registry (path) HKEY gtk_key = NULL; len = strlen (path) + 15; /* \bin\emacs.exe + terminator. */ - emacs_path = alloca (len); + emacs_path = (char *) alloca (len); sprintf (emacs_path, "%s\\bin\\emacs.exe", path); RegSetValueEx (hrootkey, NULL, 0, REG_SZ, emacs_path, len); -- 2.30.2